<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>需求详情 - 朋知云学</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
    <style>
        /* 需求详情页面特定样式 */
        .demand-detail-header {
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../static/hero-bg.jpg') no-repeat center center;
            background-size: cover;
            color: white;
            padding: 60px 0;
            margin-bottom: 40px;
        }
        
        .demand-title {
            font-size: 32px;
            margin-bottom: 15px;
            animation: fadeIn 0.8s ease-in-out;
        }
        
        .demand-meta {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
            font-size: 16px;
            animation: fadeIn 1s ease-in-out;
        }
        
        .demand-meta-item {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .demand-meta-item i {
            color: #5bc0eb;
        }
        
        .demand-tag {
            display: inline-block;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 20px;
            animation: fadeIn 1.2s ease-in-out;
        }
        
        .demand-tag.urgent {
            background-color: #dc3545;
            color: white;
        }
        
        .demand-tag.regular {
            background-color: #3498db;
            color: white;
        }
        
        .demand-tag.long-term {
            background-color: #2ecc71;
            color: white;
        }
        
        .demand-actions {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            animation: fadeIn 1.4s ease-in-out;
        }
        
        .demand-content {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            padding: 30px;
            margin-bottom: 40px;
        }
        
        .demand-section {
            margin-bottom: 30px;
        }
        
        .demand-section:last-child {
            margin-bottom: 0;
        }
        
        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: #333;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eee;
        }
        
        .demand-description {
            line-height: 1.8;
            color: #555;
        }
        
        .requirement-list {
            list-style: none;
            padding: 0;
        }
        
        .requirement-list li {
            padding: 10px 0;
            border-bottom: 1px dashed #eee;
            display: flex;
            align-items: center;
        }
        
        .requirement-list li:last-child {
            border-bottom: none;
        }
        
        .requirement-list li i {
            color: #5bc0eb;
            margin-right: 10px;
        }
        
        .school-info {
            display: flex;
            gap: 20px;
            align-items: flex-start;
        }
        
        .school-logo {
            width: 100px;
            height: 100px;
            border-radius: 8px;
            object-fit: cover;
            border: 1px solid #eee;
        }
        
        .school-details {
            flex: 1;
        }
        
        .school-name {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
        }
        
        .school-meta {
            margin-bottom: 15px;
        }
        
        .school-meta p {
            margin-bottom: 5px;
            color: #666;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .school-meta i {
            color: #5bc0eb;
        }
        
        .school-description {
            color: #555;
            line-height: 1.6;
        }
        
        .application-form {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            padding: 30px;
            margin-bottom: 40px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #333;
        }
        
        .form-control {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 16px;
            transition: border-color 0.3s ease;
        }
        
        .form-control:focus {
            border-color: #5bc0eb;
            outline: none;
        }
        
        textarea.form-control {
            min-height: 120px;
            resize: vertical;
        }
        
        .form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 15px;
        }
        
        .related-demands {
            margin-bottom: 50px;
        }
        
        .related-demands-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <header class="navbar">
        <div class="container">
            <div class="logo">
                <img src="../static/avatar1.png" alt="朋知云学">
                <span>朋知云学</span>
            </div>
            <nav class="nav-menu">
                <ul>
                    <li><a href="index.html">首页</a></li>
                    <li><a href="demands.html" class="active">支教需求</a></li>
                    <li><a href="ai-assistant.html">AI助手</a></li>
                    <li><a href="user-center.html">用户中心</a></li>
                </ul>
            </nav>
            <div class="user-actions">
                <a href="login.html" class="btn btn-login">登录</a>
                <a href="register.html" class="btn btn-register">注册</a>
            </div>
        </div>
    </header>

    <!-- 需求详情头部 -->
    <section class="demand-detail-header">
        <div class="container">
            <div class="demand-tag urgent">紧急</div>
            <h1 class="demand-title">山区小学语文教师支教</h1>
            <div class="demand-meta">
                <div class="demand-meta-item">
                    <i class="bi bi-geo-alt"></i>
                    <span>云南省丽江市</span>
                </div>
                <div class="demand-meta-item">
                    <i class="bi bi-calendar3"></i>
                    <span>2023-10-01 至 2023-12-31</span>
                </div>
                <div class="demand-meta-item">
                    <i class="bi bi-book"></i>
                    <span>语文、数学</span>
                </div>
                <div class="demand-meta-item">
                    <i class="bi bi-people"></i>
                    <span>需求人数: 3人</span>
                </div>
            </div>
            <div class="demand-actions">
                <a href="#application-form" class="btn btn-primary">申请组队</a>
                <button class="btn btn-secondary"><i class="bi bi-bookmark"></i> 收藏</button>
                <button class="btn btn-outline"><i class="bi bi-share"></i> 分享</button>
            </div>
        </div>
    </section>

    <div class="container">
        <!-- 需求详情内容 -->
        <div class="demand-content">
            <div class="demand-section">
                <h2 class="section-title">需求描述</h2>
                <div class="demand-description">
                    <p>丽江市山区小学急需语文和数学教师进行为期三个月的支教活动。该地区教育资源匮乏，师资力量不足，特别是语文和数学学科教师紧缺。我们希望能招募有爱心、有责任心的志愿者，为山区孩子带去优质的教育资源。</p>
                    <p>支教期间，志愿者将负责小学1-6年级的语文或数学课程教学，每周工作5天，每天约4-6课时。同时，也希望志愿者能够开展一些课外活动，丰富学生的课余生活。</p>
                    <p>学校将提供住宿和基本生活条件，交通费用需自理。这是一次难得的支教经历，不仅能够帮助山区孩子，也能够丰富自己的人生阅历。</p>
                </div>
            </div>

            <div class="demand-section">
                <h2 class="section-title">申请要求</h2>
                <ul class="requirement-list">
                    <li><i class="bi bi-check-circle"></i> 本科及以上学历，教育学、汉语言文学、数学等相关专业优先</li>
                    <li><i class="bi bi-check-circle"></i> 有教学经验或支教经验者优先</li>
                    <li><i class="bi bi-check-circle"></i> 能够适应山区生活条件，身体健康</li>
                    <li><i class="bi bi-check-circle"></i> 有责任心，热爱教育事业，愿意为山区教育贡献力量</li>
                    <li><i class="bi bi-check-circle"></i> 能够完成三个月的支教任务，不中途离开</li>
                </ul>
            </div>

            <div class="demand-section">
                <h2 class="section-title">学校信息</h2>
                <div class="school-info">
                    <img src="../static/avatar1.png" alt="学校logo" class="school-logo">
                    <div class="school-details">
                        <h3 class="school-name">丽江市山区希望小学</h3>
                        <div class="school-meta">
                            <p><i class="bi bi-geo-alt"></i> 云南省丽江市古城区山区镇</p>
                            <p><i class="bi bi-telephone"></i> 0888-12345678</p>
                            <p><i class="bi bi-envelope"></i> lijiang_hope@example.com</p>
                        </div>
                        <div class="school-description">
                            <p>丽江市山区希望小学创建于2005年，是一所由社会捐资援建的农村小学。学校现有学生约200人，教职工10人。学校地处偏远山区，交通不便，教育资源匮乏，特别是师资力量不足。学校环境优美，设施基本齐全，有教学楼、学生宿舍、食堂等。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 申请表单 -->
        <div class="application-form" id="application-form">
            <h2 class="section-title">申请表单</h2>
            <form id="apply-form">
                <div class="form-group">
                    <label for="name" class="form-label">姓名</label>
                    <input type="text" id="name" name="name" class="form-control" placeholder="请输入您的真实姓名" required>
                </div>

                <div class="form-group">
                    <label for="phone" class="form-label">联系电话</label>
                    <input type="tel" id="phone" name="phone" class="form-control" placeholder="请输入您的联系电话" required>
                </div>

                <div class="form-group">
                    <label for="email" class="form-label">电子邮箱</label>
                    <input type="email" id="email" name="email" class="form-control" placeholder="请输入您的电子邮箱" required>
                </div>

                <div class="form-group">
                    <label for="education" class="form-label">学历</label>
                    <select id="education" name="education" class="form-control" required>
                        <option value="">请选择您的学历</option>
                        <option value="高中">高中</option>
                        <option value="专科">专科</option>
                        <option value="本科">本科</option>
                        <option value="硕士">硕士</option>
                        <option value="博士">博士</option>
                    </select>
                </div>

                <div class="form-group">
                    <label for="major" class="form-label">专业</label>
                    <input type="text" id="major" name="major" class="form-control" placeholder="请输入您的专业" required>
                </div>

                <div class="form-group">
                    <label for="experience" class="form-label">教学/支教经验</label>
                    <textarea id="experience" name="experience" class="form-control" placeholder="请简述您的教学或支教经验（如有）" required></textarea>
                </div>

                <div class="form-group">
                    <label for="motivation" class="form-label">申请动机</label>
                    <textarea id="motivation" name="motivation" class="form-control" placeholder="请简述您的申请动机和期望" required></textarea>
                </div>

                <div class="form-actions">
                    <button type="button" class="btn btn-secondary">取消</button>
                    <button type="submit" class="btn btn-primary">提交申请</button>
                </div>
            </form>
        </div>

        <!-- 相关需求 -->
        <div class="related-demands">
            <h2 class="section-title">相关需求</h2>
            <div class="related-demands-grid">
                <div class="demand-card">
                    <div class="demand-tag urgent">紧急</div>
                    <h3>乡村初中英语教师招募</h3>
                    <div class="demand-info">
                        <p><i class="bi bi-geo-alt"></i> 贵州省黔东南州</p>
                        <p><i class="bi bi-calendar3"></i> 2023-09-15 至 2024-01-15</p>
                        <p><i class="bi bi-book"></i> 英语</p>
                    </div>
                    <a href="demand-detail.html?id=2" class="btn btn-outline">查看详情</a>
                </div>

                <div class="demand-card">
                    <div class="demand-tag urgent">紧急</div>
                    <h3>留守儿童课后辅导</h3>
                    <div class="demand-info">
                        <p><i class="bi bi-geo-alt"></i> 四川省凉山州</p>
                        <p><i class="bi bi-calendar3"></i> 2023-10-10 至 2023-12-20</p>
                        <p><i class="bi bi-book"></i> 综合课程</p>
                    </div>
                    <a href="demand-detail.html?id=3" class="btn btn-outline">查看详情</a>
                </div>

                <div class="demand-card">
                    <div class="demand-tag long-term">长期</div>
                    <h3>高中物理教师支教招募</h3>
                    <div class="demand-info">
                        <p><i class="bi bi-geo-alt"></i> 甘肃省兰州市</p>
                        <p><i class="bi bi-calendar3"></i> 2023-11-01 至 2024-02-28</p>
                        <p><i class="bi bi-book"></i> 物理</p>
                    </div>
                    <a href="demand-detail.html?id=4" class="btn btn-outline">查看详情</a>
                </div>
            </div>
        </div>
    </div>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container">
            <div class="footer-content">
                <div class="footer-logo">
                    <img src="../static/avatar1.png"  alt="朋知云学">
                    <p>朋知云学 - 让支教更简单</p>
                </div>
                <div class="footer-links">
                    <div class="link-group">
                        <h4>关于我们</h4>
                        <ul>
                            <li><a href="about.html">平台介绍</a></li>
                            <li><a href="rules.html">用户守则</a></li>
                            <li><a href="contact.html">联系我们</a></li>
                        </ul>
                    </div>
                    <div class="link-group">
                        <h4>帮助中心</h4>
                        <ul>
                            <li><a href="tutorial.html">使用教程</a></li>
                            <li><a href="faq.html">常见问题</a></li>
                            <li><a href="feedback.html">意见反馈</a></li>
                        </ul>
                    </div>
                    <div class="link-group">
                        <h4>法律信息</h4>
                        <ul>
                            <li><a href="agreement.html">用户协议</a></li>
                            <li><a href="privacy.html">隐私政策</a></li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="footer-bottom">
                <p>&copy; 2023 朋知云学. 保留所有权利.</p>
            </div>
        </div>
    </footer>

    <script src="js/main.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 表单提交处理
            const applyForm = document.getElementById('apply-form');
            if (applyForm) {
                applyForm.addEventListener('submit', function(e) {
                    e.preventDefault();
                    alert('申请已提交，我们会尽快审核并与您联系！');
                    // 这里可以添加表单数据提交到服务器的代码
                    applyForm.reset();
                });
            }
            
            // 收藏按钮处理
            const bookmarkBtn = document.querySelector('.btn-secondary');
            if (bookmarkBtn) {
                bookmarkBtn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    if (icon.classList.contains('bi-bookmark')) {
                        icon.classList.remove('bi-bookmark');
                        icon.classList.add('bi-bookmark-fill');
                        alert('已添加到收藏！');
                    } else {
                        icon.classList.remove('bi-bookmark-fill');
                        icon.classList.add('bi-bookmark');
                        alert('已取消收藏！');
                    }
                });
            }
            
            // 分享按钮处理
            const shareBtn = document.querySelector('.btn-outline');
            if (shareBtn) {
                shareBtn.addEventListener('click', function() {
                    alert('分享功能即将上线，敬请期待！');
                });
            }
        });
    </script>
</body>
</html>